package com.hky.yunyuapisdkclient;

import com.hky.yunyuapisdkclient.client.YunYuApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author hky
 */
@ComponentScan
@ConfigurationProperties("yunyuapi.client")
@Data
@ComponentScan
public class YunYuApiClientConfig {
    private String secretId;
    private String secretKey;

    @Bean
    public YunYuApiClient yunYuApiClient(){
        return new YunYuApiClient(secretId,secretKey);
    }
}
